import java.io.File;
import java.util.Arrays;

public class FileTest {

    void recursive(File f){
        if(f == null){return;}
        File[] fs = f.listFiles();
        for(File file : fs){
            if(file.isDirectory()){
                recursive(file);
            }else{
                System.out.println(file.getAbsolutePath());
            }
        }
    }

    public static void main(String[] args) {
        File f = new File("/home/lain");
//        System.out.println(f.getAbsoluteFile());
//        System.out.println(f.getAbsolutePath());
        FileTest ft = new FileTest();
        ft.recursive(f);

//        File f = new File("/home/lain");
//        System.out.println(Arrays.toString(f.list()));
//
//        File[] fs = f.listFiles();
//
//        File max = fs[0];
//        File min = fs[0];
//
//        for(File file : fs){
//            if(!file.isFile())
//                continue;
//            System.out.println(file.getName());
//            if( file.length() > max.length())
//                max = file;
//            if( file.length() < min.length())
//                min = file;
//        }
//
//        System.out.println(max);
//        System.out.println(min);
    }
}
